import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
//添加全局样式
import './assets/css/global.css'
//引入iconfont
import './assets/fontclass/iconfont.css'
//导入axios
import axios from 'axios'
import 'xe-utils'
import VxeTable from 'vxe-table'
import 'vxe-table/lib/style.css'

Vue.use(VxeTable)
Vue.prototype.$XModal = VxeTable.modal
//挂载axios
Vue.prototype.$http = axios
axios.defaults.baseURL = '/api'
//超时 设置为8秒
axios.defaults.timeout = 8000

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
